package com.ihrm.atte.dao;

import com.ihrm.domain.atte.entity.DeductionDict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DeductionDictDao extends JpaRepository<DeductionDict,String>, JpaSpecificationExecutor<DeductionDict> {
    
    /**
     * 根据公司和部门查询扣款配置信息
     */
    List<DeductionDict> findByCompanyIdAndDepartmentId(String companyId,String departmentId);
    
    /**
     * 查询扣款配置
     */
    DeductionDict findByCompanyIdAndDepartmentIdAndDedTypeCode(String companyId,String departmentId,String dedTypeCode);
    
}
